local foo = {}
foo.bar = function ()
   print("Hello, OOP in Lua")
end

-- these lines are equivalent
foo.bar(foo)
foo:bar()
